package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.sell.model.entity.CustomerDue;
import com.wing.sell.model.request.CustomerDueForm;
import com.wing.sell.model.response.CustomerDueVO;

import java.util.List;
import java.util.Map;

/**
 * 供应商尽调记录表-Service
 *
 * @author
 */
public interface CustomerDueService extends IService<CustomerDue> {

    /**
     * 添加
     *
     * @param customerDueForm
     * @return
     */
    void  add(CustomerDueForm customerDueForm) throws  Exception;

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CustomerDueVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CustomerDueVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CustomerDueVO get4appById(Long id);

    /**
     * 修改尽调记录
     * @param customerDueForm
     * @throws Exception
     */
    void update(CustomerDueForm customerDueForm) throws  Exception;

}
